home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
One Click 21 (Special)
/
OC021.iso
/
Juegos
/
King of Skeleton
/
King of Skeleton.swf
/
scripts
/
DefineSprite_488
/
frame_1
/
DoAction.as
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2006-02-02
|
349 b
|
17 lines
function setupSnow(t)
{
t.xVel = - snowWidth * 0.25 + Math.random() * (snowWidth * 0.5);
t.yVel = - snowHeight - Math.random() * snowHeightRnd;
t._rotation = random(180);
}
function doSnow(t)
{
t._x -= t.xVel;
t.yVel += gravity;
t._y += t.yVel;
}
snowHeight = 10;
snowHeightRnd = 16;
snowWidth = 12;
gravity = 1.3;